<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <div id="app">
      <h3>模板替代</h3>
      <child inline-template>
        <div>
          <p>乌拉</p>
          <p>{{count}}</p>
        </div>
      </child>

      <child2></child2>
    </div>

    <script src="../Vue.js"></script>

    <script type="text/x-template" id="abc">
      <p>如果俄罗斯都不存在了，那还要这个世界干嘛</p>
    </script>

    <script>
      const Child = {
        data() {
          return {
            count: 30,
          };
        },
      };

      const Child2 = {
        template: "#abc",
      };

      new Vue({
        el: "#app",
        data: {},
        components: {
          Child,
          Child2,
        },
      });
    </script>
  </body>
</html>
